test: Restore wrapped functions in functions_to_trace tests - #6933
Merged
Conversation
functions_to_trace tests
alexander-alderman-webb
marked this pull request as ready for review
July 29, 2026 13:59
sentrivana
approved these changes
Jul 29, 2026
Contributor
Codecov Results 📊✅ 98542 passed | ⏭️ 6772 skipped | Total: 105314 | Pass Rate: 93.57% | Execution Time: 355m 32s 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2499 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.84% 89.84% —%
==========================================
Files 193 193 —
Lines 24587 24587 —
Branches 8744 8744 —
==========================================
+ Hits 22088 22088 —
- Misses 2499 2499 —
- Partials 1400 1400 —Generated by Codecov Action |
ericapisani
approved these changes
Jul 29, 2026
mgaligniana
pushed a commit
to mgaligniana/sentry-python
that referenced
this pull request
Aug 9, 2026
…try#6933) Unwrap functions traced with `functions_to_trace` after the relevant span has finished in a finally block.
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Remove the global patch after the span has finished in a
finallyblock.Based on the flake below
https://github.com/getsentry/sentry-python/actions/runs/30455774959/job/90588843197
with console output
it looks like
time.sleepis wrapped withstart_span().Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)